package com.webapp.org.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.webapp.org.bean.QualifiedTestBean;
import com.webapp.org.dao.QualifiedTestDAO;
import com.webapp.org.interfaces.IQualifiedTest;

@Service("qualifiedtestservice")
public class QualifiedTestService implements IQualifiedTest
{
  private QualifiedTestDAO qualifiedTestDAO = new QualifiedTestDAO();
  private boolean result = false;
  
    @Override
	public boolean insertQualifiedTest(QualifiedTestBean qualifiedTestBean)
	{
	  result = qualifiedTestDAO.insertQualifiedTest(qualifiedTestBean);
      return result;
	}

	@Override
	public boolean updateQualifiedTest(QualifiedTestBean qualifiedTestBean)
	{
		  result = qualifiedTestDAO.updateQualifiedTest(qualifiedTestBean);
	      return result;
	}

	@Override
	public boolean deleteQualifiedTest(int qualifiedTestId)
	{
		result = qualifiedTestDAO.deleteQualifiedTest(qualifiedTestId);
		return result;
	}

	@Override
	public List<QualifiedTestBean> retrieveQualifiedTest()
	{
        List<QualifiedTestBean> qualifiedList = qualifiedTestDAO.retrieveQualifiedTest();
		return qualifiedList;
	}

	@Override
	public QualifiedTestBean getQualifiedTest(int qualifiedTestId)
	{
        QualifiedTestBean qualifiedTestBean = qualifiedTestDAO.getQualifiedTest(qualifiedTestId);
		return qualifiedTestBean;
	}

}
